import ajax from './config.js'

/***** 商品(Goods) 模块 *******/
// Goods 列表页面数据
export const getGoodsList = (params={}) => ajax("goods/list",params);//默认是get
export const deleteGoodsById = (params) => ajax("goods/delete",params);
export const updateGoods = (params) => ajax("goods/update",params,"POST");

export const getCategoryOptions = () => ajax("goods/category_options");

// /*****Home 模块*******/
// export const getHomeData = () => ajax(BASE_URL + 'homeApi');
// // 特色专区
// export const getHomeSpecialZone = () => ajax(BASE_URL + 'homeApi/specialZone');

// /***** 分类(Category) 模块 *******/
// // Category 列表页面数据
// export const getCategoryData = () => ajax(BASE_URL + 'homeApi/categories');

// // Category 右边内容页面数据 需要根据左边点击传值
// export const getCategoryDetailData = (params) => ajax(BASE_URL + 'homeApi/categoriesdetail' + params);

